package com.zheng.russiaRec.model.utils 
{
	/**
	 * @describe  	悬空的rec掉落下来
	 * @author  	Mr.zheng
	 * @website 	http://blog.sina.com.cn/zihua2007
	 * @time		... 
	 */
	public class U_DropOut
	{
		/**
		 * 将行号小于colsNum的rec对象sy加1
		 * @param	fixedArr		被操作数组
		 * @param	colsNumArr		悬空行号
		 */
		public function dropOutRec(fixedRecArr:Array,colsNumArr:Array):void
		{
			var recVo:Array;
			var len:int=colsNumArr.length;
			for (var name:String in fixedRecArr) 
			{
				recVo = fixedRecArr[name] as Array;
				for (var i:int = 0; i < len; i++) 
				{
					if (recVo[1] < colsNumArr[i]) {
						recVo[1]++;
					}
				}
			}
		}
		
	}
	
}